package com.yiqi.liebang.feature.wallet.view.adapter;

import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.suozhang.framework.framework.AM;
import com.yiqi.liebang.R;
import com.yiqi.liebang.common.util.DateTool;
import com.yiqi.liebang.entity.bo.BanlanceBo;
import com.yiqi.liebang.entity.bo.SelectBo;
import com.yiqi.liebang.entity.enums.WalletType;

import java.util.List;
import java.util.Vector;

public class WalletAdapter extends BaseQuickAdapter<BanlanceBo.ListData, BaseViewHolder> {


    public WalletAdapter() {
        super(R.layout.item_wallet);
    }

    @Override
    protected void convert(BaseViewHolder helper, BanlanceBo.ListData item) {
        helper.setText(R.id.tv_wallet_type, item.getTransactionStateName())
                .setText(R.id.tv_wallet_balance, "余额："+(item.getTransactionstate()==3?"+":"-")+item.getBalance())
                .setText(R.id.tv_wallet_date, DateTool.getDateToYY(item.getCreateTime()))
                .setText(R.id.tv_wallet_money, item.getTransactionaMountNum());
    }


}